<template>
  <div class="box">
    <van-nav-bar
      title="订单页"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <p>  <van-contact-card type="add" add-text="添加地址" @click="onAdd" /></p>
  <p><van-empty image="error" description="暂无订单" /></p>
    <p> <van-submit-bar :price="0" button-text="提交订单" @submit="onSubmit" /></p>
   
  </div>
</template>

<script>
export default {
  setup() {
    return {};
  },
  methods:{
    onClickLeft() {
      history.back();
    },
    onAdd(){
        this.$router.push("/address")
    },
    onSubmit(){

    }
  }
};
</script>

<style lang="scss" scoped>
.box{
    background-color: #f5f5f5;
    height: 100vh;
}
</style>
